/*include:onimage*/
/*include:includePage\baidu*/
var MiddleNav=	{
Load:function()
	{
//	this.Height=fastCSharp.$Id('arrow').Height();
	this.Interval=setInterval(fastCSharp.ThisFunction(this,this.Check),1000);
	},
Check:function()
	{
	var ScrollTop=fastCSharp.$ScrollTop(),Height=fastCSharp.$Height();
	fastCSharp.$Id('middleToTop').Display(ScrollTop>500);
	fastCSharp.$Id('middleToBottom').Display(ScrollTop+Height<fastCSharp.$(document.body).ScrollHeight()-500);
//	fastCSharp.$Id('arrow').Css('zIndex',fastCSharp.ZIndex-1).Css('position','absolute').Css('top',(ScrollTop+Height-fastCSharp.$Id('arrow').Parent().XY().Top-this.Height-100)+'px');
	},
ToTop:function()
	{
	fastCSharp.$ScrollTop(0);
	setTimeout(fastCSharp.ThisFunction(this,this.Check),10);
	},
ToButton:function()
	{
	fastCSharp.$ScrollTop(fastCSharp.$(document.body).ScrollHeight()-fastCSharp.$Height());
	setTimeout(fastCSharp.ThisFunction(this,this.Check),10);
	}
		};
fastCSharp.OnLoad(MiddleNav.Load, MiddleNav, 1);